import service from "./request";
interface loginData{
    user_name:string,
    password:string
}
/*登录接口*/
export function tslogin(data:loginData){
    return service({
        url:"/login/ver",
        method:"post",
        data:data
    })
}
/*获取分类接口*/
export function tsGetClassList(data) {
    return service({
        url:"/class/list",
        method:"get",
        params: data
    })
}
/*修改分类接口*/
export function tsUpdateClass (data) {
    return service({
        url:"/class/update_list",
        method:"post",
        data: data
    })
}
/*获取用户列表接口*/
export function tsGetUserList(data) {
    return service({
        url:"/user/list",
        method:"get",
        params: data
    }) 
}
/*获取banner列表接口*/
export function tsGetBannerList(data) {
    return service({
        url:"/banner/list",
        method:"get",
        params: data
    })
}
/*删除banner接口*/
export function tsDeleteBanner(data) {
    return service({
        url:"/banner/banner_delete",
        method:"get",
        params: data
    })
}